import { Page, ResSearch } from '@/domain/common/types/page';
import { CommonReqParam, DownLoadId, ResPageList, Workercode } from '../common';

export type Download = {
  id: DownLoadId;
  time: string;
  file_name: string;
  status: string;
  url: string;
};

export type ReqParam = Partial<{ file_name: string } & Page>;

export type ResData = ResPageList<Download>;

/**
 * 行编辑内动作枚举
 */
export enum OpButtonKey {
  /**新增 */
  download = 'download',
  /**修改*/
  delete = 'delete'
}
/**操作按钮 */
export type OpButton = {
  key: OpButtonKey;
  value: string;
};

export enum EDownloadDataType {
  longTouch = 'longTouch',
  longPlanData = 'longPlanData',
  longResubmit = 'longResubmit',
  shortTouch = 'shortTouch',
  shortPlanData = 'shortPlanData',
  shortTransform = 'shortTransform'
}
